package com.rongx.io;

import com.rongx.exceptions.PersistenceException;

public class Resources {
    public static Class<?> classForName(String className) {
        try {
            return Thread.currentThread().getContextClassLoader().loadClass(className);
        } catch (ClassNotFoundException e) {
            throw new PersistenceException("加载类失败: " + className, e);
        }
    }
}